package list;
import java.util.Stack;

import junit.framework.TestCase;


public class TestStack extends TestCase {
	
	private Stack<String> stack = new Stack<String>();
	
	public void test() {
		stack.push("stack push() 0 ");
		stack.push("stack push() 1 ");
		stack.push("stack push() 2 ");
		
		assertEquals("stack push() 2 ", stack.pop());

		assertEquals(false, stack.empty());
		
		assertEquals("stack push() 1 ", stack.peek());
		
		assertEquals(1, stack.search("stack push() 1 "));
		
	}
	
}
